const mongoose = require('mongoose') //引入Mongoose
const Schema = mongoose.Schema //声明Schema
let ObjectId = Schema.Types.ObjectId //声明Object类型

const CulturalGoodsSchema = new Schema(
  {
    GoodsId: ObjectId,
    GOODS_SERIAL_NUMBER: String,
    SHOP_ID: String,
    SUB_ID: String,
    GOOD_TYPE: Number,
    STATE: Number,
    NAME: String,
    ORI_PRICE: Number,
    PRESENT_PRICE: Number,
    AMOUNT: Number,
    DETAIL: Array,
    BRIEF: String,
    SALES_COUNT: Number,
    IMAGE1: String,
    IMAGE: Array,
    ORIGIN_PLACE: String,
    GOOD_SCENT: String,
    CREATE_TIME: String,
    UPDATE_TIME: String,
    IS_RECOMMEND: Number,
    PICTURE_COMPERSS_PATH: String,
  },
  {
    collections: 'CulturalGoods',
  }
)

mongoose.model('CulturalGoods', CulturalGoodsSchema)
